import request from '@/utils/request'

// get请求 错误码317001
export function list(params) {
  return request({
    url: `/energy/budget-declare-type-config/list`,
    method: "get",
    params,
  });
}

// 新增 错误码317002
export function add(data) {
  return request({
    url: `/energy/budget-declare-type-config`,
    method: "post",
    data,
  });
}

// 修改 错误码317003
export function edit(data) {
  return request({
    url: `/energy/budget-declare-type-config`,
    method: "put",
    data,
  });
}


// 详情 错误码317004
export function detail(id) {
  return request({
    url: `/energy/budget-declare-type-config/${id}`,
    method: "get",
  });
}

// 删除 错误码317005
export function del(id) {
  return request({
    url: `/energy/budget-declare-type-config/${id}`,
    method: "DELETE",
  });
}
